home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume6 / xfig2 / patch7 < prev    next >
Encoding:
Internet Message Format  |  1993-04-28  |  12.9 KB

  1. From: envbvs@epb2.lbl.gov (Brian V. Smith)
  2. Newsgroups: comp.sources.x
  3. Subject: v06i094: xfig 2.0, Patch7, Part01/01
  4. Message-ID: <134880@sun.Eng.Sun.COM>
  5. Date: 26 Apr 90 17:54:23 GMT
  6. Approved: argv@sun.com
  7.  
  8. Submitted-by: envbvs@epb2.lbl.gov (Brian V. Smith)
  9. Posting-number: Volume 6, Issue 94
  10. Archive-name: xfig2/patch7
  11.  
  12. There were three problems with the patches for patch level 6.
  13. The two diffs for panel.h and psfonts.c didn't apply at all.
  14. The diff file for search.c had been applied in patch 4, and
  15. patch thought it might be a reversed patch format.  DO NOT
  16. APPLY this diff for search.c.
  17.  
  18. If you HAVE applied a REVERSED patch for search.c, apply the
  19. patch again to make the following lines look like this:
  20.  
  21. line #
  22. 65:        if(a * dy == 0 && b * dx == 0)
  23. 66:        r = 0;  /* prevent core dumps */
  24. 67:        else
  25. 68:        r = a * b * dis / sqrt((double) (1.0*b*b*dx*dx + 1.0*a*a*dy*dy));
  26.  
  27.  
  28. Here are the correct patches for those files and a new bug fix
  29. for f2ps.c.   This is called patch 7.
  30.  
  31. Sorry for any inconvenience this may have caused.
  32.  
  33. Brian Smith
  34.  
  35. ------------------------ you know what to do here -----------------------------
  36. #! /bin/sh
  37. # This is a shell archive.  Remove anything before this line, then unpack
  38. # it by saving it into a file and typing "sh file".  To overwrite existing
  39. # files, type "sh file -c".  You can also feed this as standard input via
  40. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  41. # will see the following message at the end:
  42. #        "End of archive 1 (of 1)."
  43. # Contents:  CHANGES.diff f2ps.c.diff panel.h.diff patchlevel.h.diff
  44. #   psfonts.c.diff
  45. # Wrapped by envbvs@epb2.lbl.gov on Thu Apr 26 09:41:08 1990
  46. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  47. if test -f 'CHANGES.diff' -a "${1}" != "-c" ; then 
  48.   echo shar: Will not clobber existing file \"'CHANGES.diff'\"
  49. else
  50. echo shar: Extracting \"'CHANGES.diff'\" \(554 characters\)
  51. sed "s/^X//" >'CHANGES.diff' <<'END_OF_FILE'
  52. X*** CHANGES.old    Tue Apr 24 11:33:30 1990
  53. X--- CHANGES    Thu Apr 26 09:37:55 1990
  54. X***************
  55. X*** 1,5
  56. X  Version 2.0 
  57. X  
  58. X  Patchlevel 6
  59. X  Changes from patchlevel 5:
  60. X  
  61. X
  62. X--- 1,14 -----
  63. X  Version 2.0 
  64. X  
  65. X+ Patchlevel 7
  66. X+ Changes from patchlevel 6:
  67. X+ 
  68. X+ o New patch files for psfonts.c, panel.h to fix problems with those
  69. X+     files in patch level 6
  70. X+ o The patch for search.c in patch 6 was an old patch and should
  71. X+     not be applied
  72. X+ o Bug fix for f2ps where figure went off the page in landscape mode
  73. X+ 
  74. X  Patchlevel 6
  75. X  Changes from patchlevel 5:
  76. X  
  77. END_OF_FILE
  78. if test 554 -ne `wc -c <'CHANGES.diff'`; then
  79.     echo shar: \"'CHANGES.diff'\" unpacked with wrong size!
  80. fi
  81. # end of 'CHANGES.diff'
  82. fi
  83. if test -f 'f2ps.c.diff' -a "${1}" != "-c" ; then 
  84.   echo shar: Will not clobber existing file \"'f2ps.c.diff'\"
  85. else
  86. echo shar: Extracting \"'f2ps.c.diff'\" \(489 characters\)
  87. sed "s/^X//" >'f2ps.c.diff' <<'END_OF_FILE'
  88. X*** f2ps.c.old    Mon Apr 23 14:44:04 1990
  89. X--- f2ps.c    Wed Apr 25 13:30:18 1990
  90. X***************
  91. X*** 270,276
  92. X          origx = tx - llx;
  93. X          if (landscape)
  94. X          origx=0;
  95. X!         origx -= (dx-llx);
  96. X          urx = (llx=tx) + dx;
  97. X          ury = (PAGE_HEIGHT + dy) / 2.0;
  98. X          if (coord_system == 2)
  99. X
  100. X--- 270,276 -----
  101. X          origx = tx - llx;
  102. X          if (landscape)
  103. X          origx=0;
  104. X!         /* origx -= (dx-llx); */
  105. X          urx = (llx=tx) + dx;
  106. X          ury = (PAGE_HEIGHT + dy) / 2.0;
  107. X          if (coord_system == 2)
  108. END_OF_FILE
  109. if test 489 -ne `wc -c <'f2ps.c.diff'`; then
  110.     echo shar: \"'f2ps.c.diff'\" unpacked with wrong size!
  111. fi
  112. # end of 'f2ps.c.diff'
  113. fi
  114. if test -f 'panel.h.diff' -a "${1}" != "-c" ; then 
  115.   echo shar: Will not clobber existing file \"'panel.h.diff'\"
  116. else
  117. echo shar: Extracting \"'panel.h.diff'\" \(3112 characters\)
  118. sed "s/^X//" >'panel.h.diff' <<'END_OF_FILE'
  119. X*** @oldpatch/panel.h.old    Wed Apr 25 09:47:45 1990
  120. X--- panel.h    Wed Apr 25 09:49:47 1990
  121. X***************
  122. X*** 486,518
  123. X      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
  124. X  mpr_static(text_ic, 32, 32, 1, text_image);
  125. X  
  126. X! static char change_style_image[128]={
  127. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  128. X!     0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x00,
  129. X!     0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x00,
  130. X!     0x80,0x00,0x00,0x04,0x80,0x20,0x04,0x04,0x80,0x30,0x0c,0x00,
  131. X!     0x40,0x18,0x18,0x02,0x40,0xfc,0x3f,0x02,0x40,0xfc,0x3f,0x00,
  132. X!     0x20,0x18,0x18,0x01,0x20,0x30,0x0c,0x01,0x20,0x20,0x04,0x00,
  133. X!     0x10,0x00,0x80,0x00,0x10,0x00,0x80,0x00,0x10,0x00,0x00,0x00,
  134. X!     0x08,0x00,0x40,0x00,0x08,0x00,0x40,0x00,0x08,0x00,0x00,0x00,
  135. X!     0x04,0x00,0x20,0x00,0x04,0x00,0x20,0x00,0x04,0x00,0x00,0x00,
  136. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  137. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  138. X! mpr_static(change_style_ic, 32, 32, 1, change_style_image);
  139. X! 
  140. X! static char change_thick_image[128]={
  141. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  142. X!     0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x0f,0x00,0x04,0x00,0x0f,
  143. X!     0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,
  144. X!     0x00,0x01,0xc0,0x03,0x00,0x81,0xc0,0x03,0x00,0x81,0xc1,0x03,
  145. X!     0x80,0x00,0xe3,0x01,0x80,0xf8,0xe7,0x01,0x80,0xf8,0xe7,0x01,
  146. X!     0x80,0x00,0xe3,0x01,0x40,0x80,0xf1,0x00,0x40,0x80,0xf0,0x00,
  147. X!     0x40,0x00,0xf0,0x00,0x20,0x00,0x78,0x00,0x20,0x00,0x78,0x00,
  148. X!     0x20,0x00,0x78,0x00,0x10,0x00,0x3c,0x00,0x10,0x00,0x3c,0x00,
  149. X!     0x10,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  150. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  151. X!     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  152. X! mpr_static(change_thick_ic, 32, 32, 1, change_thick_image);
  153. X  
  154. X  static char incdec_thick_image[128]={
  155. X      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  156. X
  157. X--- 486,504 -----
  158. X      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
  159. X  mpr_static(text_ic, 32, 32, 1, text_image);
  160. X  
  161. X! static char     change_image[128] = {
  162. X!    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  163. X!    0x00, 0x00, 0x00, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00,
  164. X!    0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x08, 0x34, 0xf0, 0x0e,
  165. X!    0x08, 0xc4, 0x08, 0x10, 0x08, 0x04, 0x0b, 0x10, 0x08, 0x04, 0x08, 0x10,
  166. X!    0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x08, 0x10,
  167. X!    0x08, 0xb4, 0x09, 0x10, 0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x08, 0x10,
  168. X!    0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x00, 0x00,
  169. X!    0x08, 0x04, 0xeb, 0x16, 0x08, 0xc4, 0x00, 0x00, 0x08, 0x34, 0x00, 0x00,
  170. X!    0x08, 0x04, 0x00, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  171. X!    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  172. X!    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  173. X! mpr_static(change_ic, 32, 32, 1, change_image);
  174. X  
  175. X  static char incdec_thick_image[128]={
  176. X      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  177. END_OF_FILE
  178. if test 3112 -ne `wc -c <'panel.h.diff'`; then
  179.     echo shar: \"'panel.h.diff'\" unpacked with wrong size!
  180. fi
  181. # end of 'panel.h.diff'
  182. fi
  183. if test -f 'patchlevel.h.diff' -a "${1}" != "-c" ; then 
  184.   echo shar: Will not clobber existing file \"'patchlevel.h.diff'\"
  185. else
  186. echo shar: Extracting \"'patchlevel.h.diff'\" \(169 characters\)
  187. sed "s/^X//" >'patchlevel.h.diff' <<'END_OF_FILE'
  188. X*** patchlevel.h.old    Thu Apr  5 17:42:55 1990
  189. X--- patchlevel.h    Thu Apr 26 09:34:54 1990
  190. X***************
  191. X*** 1
  192. X! #define PATCHLEVEL 6
  193. X
  194. X--- 1 -----
  195. X! #define PATCHLEVEL 7
  196. END_OF_FILE
  197. if test 169 -ne `wc -c <'patchlevel.h.diff'`; then
  198.     echo shar: \"'patchlevel.h.diff'\" unpacked with wrong size!
  199. fi
  200. # end of 'patchlevel.h.diff'
  201. fi
  202. if test -f 'psfonts.c.diff' -a "${1}" != "-c" ; then 
  203.   echo shar: Will not clobber existing file \"'psfonts.c.diff'\"
  204. else
  205. echo shar: Extracting \"'psfonts.c.diff'\" \(4528 characters\)
  206. sed "s/^X//" >'psfonts.c.diff' <<'END_OF_FILE'
  207. X*** @oldpatch/psfonts.c.old    Wed Apr 25 09:54:52 1990
  208. X--- psfonts.c    Wed Apr 11 09:20:20 1990
  209. X***************
  210. X*** 7,48
  211. X  
  212. X  #ifndef TFX
  213. X  struct _fstruct fontnames[NUMFONTS] = {
  214. X!      {"Times-Roman",        "-adobe-times-medium-r-*--*", NULL},
  215. X!      {"Times-Italic",        "-adobe-times-medium-i-*--*", NULL},
  216. X!      {"Times-Bold",            "-adobe-times-bold-r-*--*", NULL},
  217. X!      {"Times-BoldItalic",        "-adobe-times-bold-i-*--*", NULL},
  218. X!      {"AvantGarde",            "NONE", NULL},
  219. X!      {"AvantGarde-BookOblique",    "NONE", NULL},
  220. X!      {"AvantGarde-Demi",        "NONE", NULL},
  221. X!      {"AvantGarde-DemiOblique",    "NONE", NULL},
  222. X!      {"Bookman-Light",        "NONE", NULL},
  223. X!      {"Bookman-LightItalic",    "NONE", NULL},
  224. X!      {"Bookman-Demi",        "NONE", NULL},
  225. X!      {"Bookman-DemiItalic",        "NONE", NULL},
  226. X!      {"Courier",            "-adobe-courier-medium-r-*--*", NULL},
  227. X!      {"Courier-Oblique",        "-adobe-courier-medium-o-*--*", NULL},
  228. X!      {"Courier-Bold",        "-adobe-courier-bold-r-*--*", NULL},
  229. X!      {"Courier-BoldItalic",        "-adobe-courier-bold-o-*--*", NULL},
  230. X!      {"Helvetica",            "-adobe-helvetica-medium-r-*--*", NULL},
  231. X!      {"Helvetica-Oblique",        "-adobe-helvetica-medium-o-*--*", NULL},
  232. X!      {"Helvetica-Bold",        "-adobe-helvetica-bold-r-*--*", NULL},
  233. X!      {"Helvetica-BoldOblique",    "-adobe-helvetica-bold-o-*--*", NULL},
  234. X!      {"Helvetica-Narrow",        "NONE", NULL},
  235. X!      {"Helvetica-Narrow-Oblique",    "NONE", NULL},
  236. X!      {"Helvetica-Narrow-Bold",    "NONE", NULL},
  237. X!      {"Helvetica-Narrow-BoldOblique",    "NONE", NULL},
  238. X!      {"NewCenturySchlbk-Roman",    "-adobe-new century schoolbook-medium-r-*--*", NULL},
  239. X!      {"NewCenturySchlbk-Italic",    "-adobe-new century schoolbook-medium-i-*--*", NULL},
  240. X!      {"NewCenturySchlbk-Bold",    "-adobe-new century schoolbook-bold-r-*--*", NULL},
  241. X!      {"NewCenturySchlbk-BoldItalic",    "-adobe-new century schoolbook-bold-i-*--*", NULL},
  242. X!      {"Palatino-Roman",        "NONE", NULL},
  243. X!      {"Palatino-Italic",        "NONE", NULL},
  244. X!      {"Palatino-Bold",        "NONE", NULL},
  245. X!      {"Palatino-BoldItalic",    "NONE", NULL},
  246. X!      {"Symbol",            "*-symbol-medium-r-*--*", NULL},
  247. X!      {"ZapfChancery-MediumItalic",    "-*-zapfchancery-medium-i-*--*", NULL},
  248. X!      {"ZapfDingbats",        "-*-zapfdingbats-*-*-*--*", NULL},
  249. X!      };
  250. X  #else
  251. X  struct _fstruct fontnames[NUMFONTS] = {
  252. X      {"Default",        "-adobe-times-medium-r-*--*", NULL},
  253. X
  254. X--- 7,48 -----
  255. X  
  256. X  #ifndef TFX
  257. X  struct _fstruct fontnames[NUMFONTS] = {
  258. X!     {"Times-Roman",            "-adobe-times-medium-r-*--*", NULL},
  259. X!     {"Times-Italic",        "-adobe-times-medium-i-*--*", NULL},
  260. X!     {"Times-Bold",            "-adobe-times-bold-r-*--*", NULL},
  261. X!     {"Times-BoldItalic",        "-adobe-times-bold-i-*--*", NULL},
  262. X!     {"AvantGarde-Book",        "-schumacher-clean-medium-r-*--*", NULL} ,
  263. X!     {"AvantGarde-BookOblique",    "-schumacher-clean-medium-i-*--*", NULL} ,
  264. X!     {"AvantGarde-Demi",        "-schumacher-clean-bold-r-*--*", NULL},
  265. X!     {"AvantGarde-DemiOblique",    "-schumacher-clean-bold-i-*--*", NULL},
  266. X!     {"Bookman-Light",        "NONE", NULL},
  267. X!     {"Bookman-LightItalic",        "NONE", NULL},
  268. X!     {"Bookman-Demi",        "NONE", NULL},
  269. X!     {"Bookman-DemiItalic",        "NONE", NULL},
  270. X!     {"Courier",            "-adobe-courier-medium-r-*--*", NULL},
  271. X!     {"Courier-Oblique",        "-adobe-courier-medium-o-*--*", NULL},
  272. X!     {"Courier-Bold",        "-adobe-courier-bold-r-*--*", NULL},
  273. X!     {"Courier-BoldOblique",        "-adobe-courier-bold-o-*--*", NULL},
  274. X!     {"Helvetica",            "-adobe-helvetica-medium-r-*--*", NULL},
  275. X!     {"Helvetica-Oblique",        "-adobe-helvetica-medium-o-*--*", NULL},
  276. X!     {"Helvetica-Bold",        "-adobe-helvetica-bold-r-*--*", NULL},
  277. X!     {"Helvetica-BoldOblique",    "-adobe-helvetica-bold-o-*--*", NULL},
  278. X!     {"Helvetica-Narrow",        "NONE", NULL},
  279. X!     {"Helvetica-Narrow-Oblique",    "NONE", NULL},
  280. X!     {"Helvetica-Narrow-Bold",    "NONE", NULL},
  281. X!     {"Helvetica-Narrow-BoldOblique","NONE", NULL},
  282. X!     {"NewCenturySchlbk-Roman",    "-adobe-new century schoolbook-medium-r-*--*", NULL},
  283. X!     {"NewCenturySchlbk-Italic",    "-adobe-new century schoolbook-medium-i-*--*", NULL},
  284. X!     {"NewCenturySchlbk-Bold",    "-adobe-new century schoolbook-bold-r-*--*", NULL},
  285. X!     {"NewCenturySchlbk-BoldItalic",    "-adobe-new century schoolbook-bold-i-*--*", NULL},
  286. X!     {"Palatino-Roman",        "-*-lucidabright-medium-r-*--*", NULL},
  287. X!     {"Palatino-Italic",        "-*-lucidabright-medium-i-*--*", NULL},
  288. X!     {"Palatino-Bold",        "-*-lucidabright-demibold-r-*--*", NULL} ,
  289. X!     {"Palatino-BoldItalic",        "-*-lucidabright-demibold-i-*--*", NULL} ,
  290. X!     {"Symbol",            "*-symbol-medium-r-*--*", NULL},
  291. X!     {"ZapfChancery-MediumItalic",    "-*-zapfchancery-medium-i-*--*", NULL},
  292. X!     {"ZapfDingbats",        "-*-zapfdingbats-*-*-*--*", NULL},
  293. X!     };
  294. X  #else
  295. X  struct _fstruct fontnames[NUMFONTS] = {
  296. X      {"Default",        "-adobe-times-medium-r-*--*", NULL},
  297. END_OF_FILE
  298. if test 4528 -ne `wc -c <'psfonts.c.diff'`; then
  299.     echo shar: \"'psfonts.c.diff'\" unpacked with wrong size!
  300. fi
  301. # end of 'psfonts.c.diff'
  302. fi
  303. echo shar: End of archive 1 \(of 1\).
  304. cp /dev/null ark1isdone
  305. MISSING=""
  306. for I in 1 ; do
  307.     if test ! -f ark${I}isdone ; then
  308.     MISSING="${MISSING} ${I}"
  309.     fi
  310. done
  311. if test "${MISSING}" = "" ; then
  312.     echo You have the archive.
  313.     rm -f ark[1-9]isdone
  314. else
  315.     echo You still need to unpack the following archives:
  316.     echo "        " ${MISSING}
  317. fi
  318. ##  End of shell archive.
  319. exit 0
  320.  
  321. dan
  322. ----------------------------------------------------
  323. O'Reilly && Associates   argv@sun.com / argv@ora.com
  324. Opinions expressed reflect those of the author only.
  325.